import java.util.Scanner;


public class Lab8_1
{
   public static void main(String[] args)
   {
      Scanner keyboard = new Scanner(System.in);
      int number = 1;
      
      while(number > 0)
      {
         System.out.println("Enter a whole number: ");
         number = keyboard.nextInt();
         System.out.println("You entered "+ number );
      }
      System.out.println("Number after loop = "+ number);
   }
}
